package jvm.classLoader;

/**
 * @Author wen
 * @Date 2021/6/27
 *
 * 先加载父类普通成员和非static块
 * 父类在执行构造函数的时候，调用了子类（导出类）重载过的方法，在子类的重载方法中，给实例变量做了一次赋值
 **/
public class MyTest06Child extends MyTest06{
    public String whenAmISet = "set when declared";


    @Override
    void preProcess() {

        System.out.println("进入子类Override");
        whenAmISet = "set in preProcess";

    }

    public static void main(String[] args) {
        MyTest06Child myTest06 = new MyTest06Child();
        System.out.println(myTest06.whenAmISet);
    }

}
